package com.ymt.bpm.service.platform.profile;


import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ymt.bpm.model.PUser;
import com.ymt.bpm.model.PUserExt;

/**
 * Created by Johnny on 2017/1/30.
 */
public interface UserProfileService {

    public JSONObject update(String lsn, String ldn, PUser user, String oldPwd);

    public JSONObject updateExt(String lsn, String ldn, PUserExt userExt);

    public JSONObject delete(String lsn, String ldn, String userId);

    public JSONObject changePwd(String lsn, String ldn, String newPwd, String oldPwd);

    JSONArray getUserAdminMenu(String tenantId, String loginName);

    JSONObject getUserPortalMenu(String tenantId, String loginName);

}
